/*
 * Created on 08/23/2011 - 04:12 PM
 */
package sembr.geometry.shapes;

import importadorDXF.DxfLINE;
import sembr.geometry.interfacing.ShapeBase;

/**
 *
 * @author Adriano
 */
public class LineCollector extends ShapeBase<DxfLINE> 
{
    public double[] getStartPointAt(int index)
    {
        // coordenates in 3D
        double[] coordenates = new double[3];
        
        coordenates[0] = getCurrentElement(index).getStartPoint().x;
        coordenates[1] = getCurrentElement(index).getStartPoint().y;
        coordenates[2] = getCurrentElement(index).getStartPoint().z;
        
        return coordenates;
    }
    
    public double[] getEndPointAt(int index)
    {
        // coordenates in 3D
        double[] coordenates = new double[3];
        
        coordenates[0] = getCurrentElement(index).getEndPoint().x;
        coordenates[1] = getCurrentElement(index).getEndPoint().y;
        coordenates[2] = getCurrentElement(index).getEndPoint().z;
        
        return coordenates;
    }
}
